package com.example.project.config;

import com.baomidou.mybatisplus.annotation.TableField;
import com.example.project.enums.RoleEnum;
import com.example.project.vo.model.Radio;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import static com.example.project.constant.Constants.SYSTEM_NAME;

@Data
@ApiModel("SystemConfig ")
@Component
@ConfigurationProperties(prefix = "system-config")
public class SystemConfig implements Serializable {
    private static final long serialVersionUID = -90479471749684201L;

    @ApiModelProperty("系统名")
    private String systemName ;

    @ApiModelProperty("系统登入背景")
    private   String systemLoginBack ;

    @ApiModelProperty("系统注册背景")
    private String systemRegisterBack ;

    @ApiModelProperty("系统表格背景")
    private String systemTableBack  ;

    @ApiModelProperty("是否有修改密码,1 有 2 没有")
    private Boolean changePassword;

    @ApiModelProperty("系统用户")
    @TableField(exist = false)
    private  List<Radio> roles = new ArrayList<>();


}


